package com.etc.dao;

import java.util.List;

import com.etc.entity.BroadcastingStation;
import com.etc.entity.BroadcastingStationDetails;
import com.etc.entity.MusicInfo;

public interface BroadcastingStationDao {

	/**
	 * 查询电台歌单取6条结果
	 * @param broadcastingStationId
	 * @param broadcastingStationName
	 * @return
	*/
	List<BroadcastingStation> find(String zt);
	
	/**
	 * 根据组合条件查询歌单分页结果 
	 * @param languagesName
	 * @param styleName
	 * @param themeName
	 * @param moodName
	 * @param sceneName
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	List<BroadcastingStation> findByConditions(String languagesName,String styleName,String themeName,String moodName,String sceneName,int pageNum,int pageSize);
	
	/**
	 * 根据不同条件查询歌单的总记录数
	 * @param languagesName
	 * @param styleName
	 * @param themeName
	 * @param moodName
	 * @param sceneName
	 * @return
	 */
	int countByCondition(String languagesName,String styleName,String themeName,String moodName,String sceneName);

	/**
	 * 根据条件查询不同电台的第一个id 
	 * @param BroadcastingStationId
	 * @return
	 */
	int findFirstByBroadcastingStation(int BroadcastingStationId);

	/**
	 * 根据歌单ID查歌单
	 * @param BroadcastingStationId
	 * @param musicInfoList
	 * @return
	 */
	BroadcastingStation findBroadcastingStationById(int broadcastingStationId,List<MusicInfo> musicInfoList);

	
	/**
	 * 根据用户id获得用户收藏歌单
	 * @param userId
	 * @return
	 */
	List<BroadcastingStation> findByUserId(Integer userId);
}
